package ControlLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class Test_DVDCtr.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class Test_DVDCtr
{
    /**
     * Default constructor for test class Test_DVDCtr
     */
    public Test_DVDCtr()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void testDVDCtr()
    {
        ControlLayer.DVDCtr dVDCtr = new ControlLayer.DVDCtr();
        dVDCtr.createDvd(1, "en hest", "lars lilholt", "27062001");
        dVDCtr.createDvd(2, "hej hej hej", "sofie og pigerne", "31061654");
        dVDCtr.createDvd(3, "jeg har en hest", "søren", "03102011");
        dVDCtr.createCopy(1, "1000", "20062002", "521", "al for dyr");
        dVDCtr.createCopy(1, "1001", "54021989", "123", "hel ny");
        dVDCtr.createCopy(2, "1002", "12052005", "123", "lige udkommet");
        dVDCtr.listDvd();
        dVDCtr.deleteDvd(2);
        dVDCtr.listAll(1);
    }
}

